//********************************************************************
// pp53.java    Author: 20172330
//
// 判断一个数字。
//*******************************************************************

import java.util.Scanner;

public class pp53
{
   //-------------------------------------------------------------------
   // 判断一个整数包含的奇数，偶数，和0的个数。
   //
   //-------------------------------------------------------------------
   public static void main(String []args)
   {
     String number;
     int left, right, ji, ou, ling;
 
     Scanner scan = new Scanner(System.in);

     System.out.println("Enter a number:");
     number = scan.nextLine();
   
     left = 0;
     right = number.length()-1 ;
     ji = 0;
     ou = 0;
     ling = 0;
     while (left <= number.length()-1)
     { 
       int num = number.charAt(right)-48; 
       if (num == 0)
       {
          ling++;
       }
       else
       {
        if (num % 2 == 0)
          ou++;
        else
          ji++;
       }  
       left++;
       right--;
     }
     System.out.println("ji shu ge shu is:" + ji);
     System.out.println("ou shu ge shu is:" + ou);
     System.out.println("ling ge shu is:" + ling);
   }
}
